package com.hzf.ucenter.dao.model;

import java.io.Serializable;

public class UcenterAuthBusiness implements Serializable {
    /**
     * 主键
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 关联用户ID
     *
     * @mbg.generated
     */
    private Integer userId;

    /**
     * 店铺照片
     *
     * @mbg.generated
     */
    private String officeDocument;

    /**
     * 营业执照
     *
     * @mbg.generated
     */
    private String officeLicense;

    private Integer authId;

    private UcenterAuthType ucenterAuthType;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getOfficeDocument() {
        return officeDocument;
    }

    public void setOfficeDocument(String officeDocument) {
        this.officeDocument = officeDocument;
    }

    public String getOfficeLicense() {
        return officeLicense;
    }

    public void setOfficeLicense(String officeLicense) {
        this.officeLicense = officeLicense;
    }

    public Integer getAuthId() {
        return authId;
    }

    public void setAuthId(Integer authId) {
        this.authId = authId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", officeDocument=").append(officeDocument);
        sb.append(", officeLicense=").append(officeLicense);
        sb.append(", authId=").append(authId);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UcenterAuthBusiness other = (UcenterAuthBusiness) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getOfficeDocument() == null ? other.getOfficeDocument() == null : this.getOfficeDocument().equals(other.getOfficeDocument()))
            && (this.getOfficeLicense() == null ? other.getOfficeLicense() == null : this.getOfficeLicense().equals(other.getOfficeLicense()))
            && (this.getAuthId() == null ? other.getAuthId() == null : this.getAuthId().equals(other.getAuthId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getOfficeDocument() == null) ? 0 : getOfficeDocument().hashCode());
        result = prime * result + ((getOfficeLicense() == null) ? 0 : getOfficeLicense().hashCode());
        result = prime * result + ((getAuthId() == null) ? 0 : getAuthId().hashCode());
        return result;
    }

    public UcenterAuthType getUcenterAuthType() {
        return ucenterAuthType;
    }

    public void setUcenterAuthType(UcenterAuthType ucenterAuthType) {
        this.ucenterAuthType = ucenterAuthType;
    }
}